/* Import Google Font and Font Awesome */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Root Variables */
:root {
  --primary-color: #1877f2;
  --background-color: #18191a;
  --text-color: #e4e6eb;
  --subtext-color: #b0b3b8;
  --white: #242526;
  --shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

/* Reset & Base */
html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 24px;
}

.header-content span {
  margin-top: 5px;
  white-space: nowrap;
  letter-spacing: normal;
}

.header-content a {
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
}

.site-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

/* Gallery Section */
.container {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.gallery-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-color);
}

/* Single Unlock All Button */
.unlock-all-container {
  text-align: center;
  margin: 25px 0 30px 0;
}

.unlock-all-btn {
  background: #1877f2;           /* Exact Facebook blue */
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  transition: all 0.3s ease;
}

.unlock-all-btn:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.unlock-all-btn:disabled {
  background: #28a745;
  cursor: default;
  transform: none;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  justify-items: center;
}

.gallery-item {
  position: relative;
  display: inline-block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: blur(8px);           /* All images blurred by default */
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-item.unlocked img {
  filter: blur(0);             /* Sharp when unlocked */
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* Locked Overlay */
#lockedOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  z-index: 9999;
}

/* Lightbox Modal */
#lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  flex-direction: column;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
  margin: auto;
  display: block;
  cursor: grab;
  transition: transform 0.15s ease;
  transform-origin: center center;
}

.lightbox-image:active {
  cursor: grabbing;
}

/* Lightbox Controls */
.prev, .next, .close {
  font-size: 60px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, opacity 0.3s;
}

.close {
  top: 20px;
  right: 40px;
  position: absolute;
}

.prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}

.next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}

.close:hover, .prev:hover, .next:hover {
  color: #ffdd57;
}

.prev.hidden, .next.hidden, .close.hidden {
  opacity: 0;
  pointer-events: none;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none;
}